package day1901;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class map_set {
    public static void main(String[] args) {
        String a = new Scanner(System.in).nextLine();
        Map<Character,Integer> b = new HashMap<>();
        for(int i =0;i<a.length();i++){
            Character c = a.charAt(i);
            if(b.containsKey(c))
                b.put(c,b.get(c)+1);
            else
                b.put(c,1);
        }
        System.out.println(b);
        Set<Map.Entry<Character,Integer>> f = b.entrySet();
        for(Map.Entry<Character,Integer> zz:f){
            System.out.println(zz.getKey()+"="+zz.getValue());
        }
    }
}
